//
//  Config.m
//  CherryPlumStore
//
//  Created by SDX on 2019/9/21.
//  Copyright © 2019 千凯. All rights reserved.
//

#import "Config.h"

@implementation Config
+ (instancetype) shareConfig {
    static Config *config = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        config = [[Config alloc] init];
    });
    return config;
}

#pragma mark --存取数据
-(void)setValue:(id)value forKey:(NSString *)key{
    [[NSUserDefaults standardUserDefaults]setObject:value forKey:key];
}

-(id) getValueWithKey: (NSString *)key {
    return [[NSUserDefaults standardUserDefaults] objectForKey:key];
}

@end
